# frozen_string_literal: true

RSpec.describe "README.md" do
  let(:readme) { File.read("README.md", encoding: "UTF-8") }

  it "has valid YAML in ```yaml blocks" do
    readme.scan(/```yaml\n(.*)(?=^)\n```/) do |m|
      expect { YAML.load(m[0]) }.not_to raise_errors
    end
  end
end
